package cn.kgc.ssm.controller;

import cn.kgc.ssm.dto.QueryLogInfo;
import cn.kgc.ssm.service.LogInfoService;
import cn.kgc.ssm.util.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2023/10/28
 * @description  操作日志控制层
 */
@RestController
@RequestMapping("log")
public class LogOperationController {

    @Resource
    private LogInfoService logInfoService;

    @GetMapping("list")
    public ResponseResult  logList(QueryLogInfo queryLogInfo){
      return  logInfoService.getPage(queryLogInfo);
    }

}
